package com.zc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zc.dto.ExamScoreTrendDTO;
import com.zc.dto.ScoreStudentDTO;
import com.zc.pojo.Scores;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScoresService extends IService<Scores> {
    IPage<ScoreStudentDTO> selectScoreWithStudent(Page<ScoreStudentDTO> page,
                                                         String name,
                                                         Integer examId,
                                                         String selectedClass);

    // 根据studentId列表查询数据（批量选中导出）
    List<ScoreStudentDTO> exportSelectedStudents(List<Integer> studentIds);
    // 导出：查询符合条件的所有成绩+学生数据（不分页）
    List<ScoreStudentDTO> exportScoreWithStudent(String name, Integer examId, String selectedClass);
    // 检查是否存在该学生的该考试成绩
    boolean exists(Integer studentId, Integer examId);
    //获取考试分析趋势图数据
    List<ExamScoreTrendDTO> getStudentScoreTrend(Integer studentId);
}

